From: Keir Fraser Date: Fri, 12 Sep 2008 09:40:19 +0000 (+0100) Subject: x86, cpu hotplug: flush softirq work when going offline X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14110^2~14 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=e17887baa3998b62af929fd143e1a8e35266509a;p=xen.git x86, cpu hotplug: flush softirq work when going offline From: Haitao Shan Signed-off-by: Keir Fraser --- diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c index 9f2746910b..31a100f81c 100644 --- a/xen/arch/x86/domain.c +++ b/xen/arch/x86/domain.c @@ -86,6 +86,12 @@ static void default_idle(void) static void play_dead(void) { + /* + * Flush pending softirqs if any. They can be queued up before this CPU + * was taken out of cpu_online_map in __cpu_disable(). + */ + do_softirq(); + /* This must be done before dead CPU ack */ cpu_exit_clear(); hvm_cpu_down();